/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkg1;

import java.util.ArrayList;

/**
 * Objects of this class represent doctors in the domain model.
 * @author Nick
 */
public class Doctor implements Provider{
    //Name of the doctor
    private String name;
    //Unique Id of the doctor
    private int id;
    //Patients of the doctor
    private ArrayList<Patient> patients = new ArrayList<Patient>();
    /*
     * constructor for a doctor
     */
    public Doctor(String name, int id) {
        this.name = name;
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the patients
     */
    public ArrayList<Patient> getPatients() {
        return patients;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }
    
    /**
     * returns the toString of the Doctor
     * @return 
     */
    public String toString() {
        return name + " (Id: " + id + ")";
    }
}
